package com.yuyou.activity.group.service.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.activity.group.service.entity.ActivityGroupbuyOrderDetail;

import java.util.List;

@Mapper
public interface ActivityGroupbuyOrderDetailMapper {
    int deleteByPrimaryKey(Long activityGroupbuyOrderDetailId);

    int insert(ActivityGroupbuyOrderDetail record);

    ActivityGroupbuyOrderDetail selectByPrimaryKey(Long activityGroupbuyOrderDetailId);

    int updateByPrimaryKeySelective(ActivityGroupbuyOrderDetail record);

    List<Long> findSourceIdByOrderId(Long orderId);
    
    /**
     * 找出openid支付成功的商品
     * @param openId
     * @return
     */
    List<ActivityGroupbuyOrderDetail> findSuccByOpenId7Phone(
    		@Param(value="projectCode")String projectCode,
    		@Param(value="openId") String openId,
    		@Param(value="phone") String phone);
    
}